package com.zhao.fishingguideserver.service.impl;

import com.zhao.fishingguideserver.POJO.OperationLog;
import com.zhao.fishingguideserver.mapper.OperationLogMapper;
import com.zhao.fishingguideserver.service.OperationLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 操作日志服务实现类
 */
@Service
public class OperationLogServiceImpl implements OperationLogService {
    
    @Autowired
    private OperationLogMapper operationLogMapper;
    
    @Override
    public void addLog(OperationLog log) {
        operationLogMapper.insert(log);
    }
    
    @Override
    public List<OperationLog> getLogList(String adminName, String operationType, String operationModule) {
        return operationLogMapper.selectAll(adminName, operationType, operationModule);
    }
}

